package com.qianfeng.mybatis.simple.mapper;

import com.qianfeng.mybatis.simple.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * Created by Zhaohao on 2022/5/16 20:54
 *
 * @version 1.0
 * @auther Zhaohao
 * @since 1.0
 */
public interface UserMapper {

    TbUser findById(long id);

    TbUser findByUnameAndPasswordWithMap(Map map);

    TbUser findByUnaemAndPasswordWithPojo(TbUser user);

    TbUser findByUnaemAndPassword(@Param("username") String username, @Param("password")String password);
}
